//
//  WaterFlow.m
//  XDCommonApp
//
//  Created by wanglong8889@126.com on 14-3-12.
//  Copyright (c) 2014年 XD-XY. All rights reserved.
//

#import "WaterFlow.h"
#import "XDHeader.h"
@implementation WaterFlow
-(id)initWithDic:(NSDictionary *)dic{
    self = [super init];
    if (self) {
        NSString *str = [dic objectForKey:@"imageUrl_s"];
        NSString * imageUrl = [NSString stringWithFormat:@"%@%@",ImageMainUrl,str];
        NSString * urlstring = [imageUrl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
        self.urlString = urlstring;
        self.artTitle = [dic objectForKey:@"workTitle"];
        self.artistName = [dic objectForKey:@"artistName"];
        self.artCount = [dic objectForKey:@"beScanTime"];
        self.ratio = [dic objectForKey:@"ratio"];
        self.workId = [dic objectForKey:@"workId"];
    }
    return self;
}
@end
